home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
logs
/
logbook
/
logsrch.prg
< prev
next >
Wrap
Text File
|
1990-05-04
|
2KB
|
85 lines
*:*********************************************************************
*:
*: Program: LOGSRCH.PRG
*:
*: System: PC-HAM Logbook
*: Author: Joe Kasser G3ZCZ
*: Copyright (c) 1990, Joe Kasser
*: Last modified: 05/04/90 13:07
*:
*: Called by: LOGFUNCT.PRG
*:
*: Uses: &LOGBOOK.DBF
*:
*: Indexes: &LOGNDX
*:
*: Documented 05/04/90 at 13:49 SNAP! version 3.12f
*:*********************************************************************
*LOCAL VARIABLES callflag,callheard,linecount
USE &logbook INDEX &logndx
STORE .t. TO callflag
STORE ' ' TO callheard
*MAIN LOOP
DO WHILE callflag
SET COLOR TO GR+/B,W+/RB,BG+
GOTO TOP
@ 24,1 SAY "Call/Prefix (* To terminate) ?"
STORE SUBSTR(callheard+ ' ',1,10) TO callheard
@ 24,33 GET callheard
READ
STORE TRIM(callheard) TO callheard
IF callheard = "*"
STORE .F. TO callflag
* Clear loop control for exit
ELSE
STORE 1 TO linecount
CLEAR
? " Log entries for CALL PREFIX = "
SET COLOR TO W+/R,W+/RB,BG+
?? callheard
* ?
FIND &callheard
IF (EOF() .or. BOF())
@ 5,1 SAY callheard
@ 5,12 SAY "does not appear to be in the log"
ELSE
DO WHILE CALL = callheard .and. (.not.EOF())
IF linecount = 1
SET COLOR TO GR+/B,W+/RB,BG+
@ 3,1 SAY " ENTRY DATE TIME CALL BAND PWR MODE RX TX "
@ 3,58 SAY "S R COMMENTS"
? " ----------------------------------------------------"
?? "--------------"
ENDIF
SET COLOR TO W+/R,W+/RB,BG+
? RECNO(),DATE,TIME,CALL,band,Power,mode,rx,tx,qslsent,qslrx,comments
STORE linecount + 1 TO linecount
IF linecount = 19
?
SET COLOR TO GR+/B,W+/RB,BG+
WAIT
CLEAR
? " Log entries for CALL PREFIX = "
SET COLOR TO W+/R,W+/RB,BG+
?? callheard
STORE 1 TO linecount
ENDIF
SKIP
ENDDO
ENDIF
?
?
ENDIF
GOTO TOP
ENDDO
SET COLOR TO GR+/B,W+/RB,BG+
USE
RELEASE callflag,callheard,linecount
RETURN
*: EOF: LOGSRCH.PRG